

cc.Class({
    extends: cc.Component,

    properties: {
        power :{
            default:null,
            type:cc.Label 
        },
        depth: {
            default:null,
            type :cc.Label
        },
        productivity : {
            default :null ,
            type  : cc.Label
        }
        
    },

   

    onLoad () {
        this.setInfo()
    },

    setInfo() {
        this.power.string = cc.vv.userMgr.power 
        this.depth.string = cc.vv.userMgr.depth
        this.productivity.string = cc.vv.userMgr.productivity
        
        
        cc.log(cc.vv.userMgr.sex)
        if(cc.vv.userMgr.sex ==1) {
            var head = cc.find("Canvas/info/pot/head/girl")
            
            head.active = false
        }
    },
    start () {
        


    },

    // update (dt) {},
});
